package com.vichat.business.entity;


import javax.persistence.*;
import java.util.List;

/***************
 *author: autogen
 *version: 2019-02-13 11:12:28.389
 */
@Entity
@Table(name = "district_fence_user",catalog = "businessdb")
public class DistrictFenceUser implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "district_fence_user";

    /**主键ID */
	public static final String ALIAS_ID = "id";
    /**用户ID */
	public static final String ALIAS_USER_ID = "user_id";
    /**枚举类型 1 用户 2 组织 */
	public static final String ALIAS_TYPE = "type";
    /**围栏ID */
	public static final String ALIAS_FENCE_ID = "fence_id";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
    public java.lang.Long id;
  
 	@Column(name = "user_id")
    public java.lang.Long userId = 0l;
  
 	@Column(name = "type")
    public java.lang.Long type;
  
 	@Column(name = "fence_id")
    public java.lang.Long fenceId = 0l;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  





	public java.lang.Long getId() {
		return this.id;
	}
	
	public void setId(java.lang.Long value) {
		this.id = value;
	}

	public java.lang.Long getUserId() {
		return this.userId;
	}
	
	public void setUserId(java.lang.Long value) {
		this.userId = value;
	}

	public java.lang.Long getType() {
		return this.type;
	}
	
	public void setType(java.lang.Long value) {
		this.type = value;
	}

	public java.lang.Long getFenceId() {
		return this.fenceId;
	}
	
	public void setFenceId(java.lang.Long value) {
		this.fenceId = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}


	
	public DistrictFenceUser() {
	}
	
	public DistrictFenceUser(boolean qryflag) {
	    if(qryflag){
	    		this.id = null;
				this.userId = null;
				this.type = null;
				this.fenceId = null;
				this.state = null;
			    }
	}


	public DistrictFenceUser(
	    java.lang.Long inId,
	    java.lang.Long inUserId,
	    java.lang.Long inType,
	    java.lang.Long inFenceId,
		java.lang.Long inState
	 ) {
		super();
				this.id = inId;
				this.userId = inUserId;
				this.type = inType;
				this.fenceId = inFenceId;
				this.state = inState;
			}

	@Transient
	private List<Long> ids;

	public List<Long> getIds() {
		return ids;
	}

	public void setIds(List<Long> ids) {
		this.ids = ids;
	}

	@Transient
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	@Transient
	private String orgName;

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}



}

